MLAB-5611: First version of new tutorial#111
Conversation
|
A preview of 3aec329 is uploaded and can be seen here: ✨ https://mevislab.github.io/examples/pull/111/ ✨ Changes may take a few minutes to propagate. Since this is a preview of production, content with |
| ## Prepare your network | ||
|
|
||
| ### Displaying three images in one panel | ||
| Add an `ImageLoad` module to your workspace and select 3D image like *./MeVisLab/Resources/DemoData/MRI_Head.tif* from MeVisLab demo data directory. Connect an `OrthoReformat3` module and add three `View2D` modules. |
There was a problem hiding this comment.
select a 3D image
from the MeVislab demo data
|
|
||
|  | ||
|
|
||
| Opening the three `View2D` module panels now show the data in 3 orthogonal views. The module `OrthoReformat3` transforms the input image (by rotating and/or flipping) into the three main views commonly used. |
|
|
||
| Add a `SoRenderArea` for your final result to the network and connect all three `SoViewportRegion` modules to it. | ||
|
|
||
| The result is, that all of your viewers are initially above each other in the bottom right corner. |
There was a problem hiding this comment.
The result is that (no comma)
are initially above each other -> are initially displayed on top of each other
|
|
||
| The result is, that all of your viewers are initially above each other in the bottom right corner. | ||
|
|
||
|  |
|
|
||
| The `SoViewportRegion` module allows to define the X- and Y-position and the width and height of the image in the `SoRenderArea` module. | ||
|
|
||
| Values can be in pixels or as fractions from 0 to 1. |
There was a problem hiding this comment.
from 0 to 1. -> from 0 to 1:
| Values can be in pixels or as fractions from 0 to 1. | ||
| * 0 means the start of the render area | ||
| * 0.5 means the center of the render area | ||
| * 1 means the end of the render area |
There was a problem hiding this comment.
This is not completely correct - it depends on the defined reference
|
|
||
|  | ||
|
|
||
| These views will be arranged in a single panel, split into two sides, with each side showing two images. To add the 3D view, insert a `View3D` module and connect it to the `ImageLoad` module. Then connect the `View3D` to `SoCameraInteraction`, connect that to another `SoViewportRegion3`, and finally to `SoRenderArea`. |
There was a problem hiding this comment.
to another SoViewportRegion3 -> to another SoViewportRegion
|  | ||
|
|
||
| ## Exercise | ||
| You can play around the different `SoViewportRegion` modules to create your own layouts by setting the values a little different. |
There was a problem hiding this comment.
play around with the ...
No description provided.